package cn.edu.nwafu.hjpg.dao;

import cn.edu.nwafu.hjpg.entity.Hjxwb;
import cn.edu.nwafu.hjpg.entity.Hyxxb;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface HyxxbDao extends MongoRepository<Hyxxb,String> {

    Page<Hyxxb> findAllByflag(String flag, Pageable pageable);

    List<Hyxxb> findElementByBaseinfoWzbmAndAttributeAndFlag(String id, String name, String flag);


    List<Hyxxb> findAllByBaseinfoWzbmAndFlag(String id, String flag);

    Page<?> findAllByflagAndAttribute(String id, String attribute, int flag, Pageable pageable);

    List<Hyxxb> findAll();
}
